package in.srain.cube.request;

public interface CacheAbleRequestHandler<T> extends RequestHandler<T, String> {

    /**
     * the data from cache, outOfDate detective if the data is out of date.
     */
    void onCacheData(T data, boolean outOfDate);

    void onCacheAbleRequestFinish(T data, CacheAbleRequest.ResultType type, boolean outOfDate);
}